package com.obtk.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.stereotype.Repository;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * 功能说明
 *
 * @author Mr.Sun
 * @date 2023-04-06 12:06:12
 */
@Repository
public class CstActivity implements Serializable {
    private static final long serialVersionUID = -8736616045315083846L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer avtId;
    private Integer avtCustId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date avtDate;
    private String avtPlace;
    private String avtTitle;
    private String avtDesc;
    private Integer avtStatus;

    @Override
    public String toString() {
        return "CstActivity{" +
                "avtId=" + avtId +
                ", avtCustId=" + avtCustId +
                ", avtDate=" + avtDate +
                ", avtPlace='" + avtPlace + '\'' +
                ", avtTitle='" + avtTitle + '\'' +
                ", avtDesc='" + avtDesc + '\'' +
                ", avtStatus=" + avtStatus +
                '}';
    }

    public CstActivity() {
    }

    public CstActivity(Integer avtId, Integer avtCustId, Date avtDate, String avtPlace, String avtTitle, String avtDesc, Integer avtStatus) {
        this.avtId = avtId;
        this.avtCustId = avtCustId;
        this.avtDate = avtDate;
        this.avtPlace = avtPlace;
        this.avtTitle = avtTitle;
        this.avtDesc = avtDesc;
        this.avtStatus = avtStatus;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getAvtId() {
        return avtId;
    }

    public void setAvtId(Integer avtId) {
        this.avtId = avtId;
    }

    public Integer getAvtCustId() {
        return avtCustId;
    }

    public void setAvtCustId(Integer avtCustId) {
        this.avtCustId = avtCustId;
    }

    public Date getAvtDate() {
        return avtDate;
    }

    public void setAvtDate(Date avtDate) {
        this.avtDate = avtDate;
    }

    public String getAvtPlace() {
        return avtPlace;
    }

    public void setAvtPlace(String avtPlace) {
        this.avtPlace = avtPlace;
    }

    public String getAvtTitle() {
        return avtTitle;
    }

    public void setAvtTitle(String avtTitle) {
        this.avtTitle = avtTitle;
    }

    public String getAvtDesc() {
        return avtDesc;
    }

    public void setAvtDesc(String avtDesc) {
        this.avtDesc = avtDesc;
    }

    public Integer getAvtStatus() {
        return avtStatus;
    }

    public void setAvtStatus(Integer avtStatus) {
        this.avtStatus = avtStatus;
    }
}
